import service from "./request";
// 首页轮播图
export function index_banner(params = {}) {
    return service.get('/index/banner', { params })
}
// 首页导航
export function index_nav(params = {}) {
    return service.get('/index/nav', { params })
}
// 首页推荐列表
export function index_goodlist(params = {}) {
    return service.get('/index/goodlist', { params })
}
// 分类-一级分类
export function category_list(params = {}) {
    return service.get('/category/list', { params })
}
// 分类-二三级分类
export function category_subcate(params = {}) {
    return service.get('/category/subcate', { params })
}
// 登录
export function user_login(params = {}) {
    return service.post('/user/login', params)
}
// 注册
export function user_register(params = {}) {
    return service.post('/user/register', params)
}
// 按分类搜索
export function good_list(params = {}) {
    return service.get('/good/list', { params })
}
// 按关键词搜索
export function good_search(params = {}) {
    return service.get('/good/search', { params })
}
// 热门搜索
export function good_hotsearch(params = {}) {
    return service.get('/good/hotsearch', { params })
}
// 商品详情
export function good_goodinfo(params = {}) {
    return service.get('/good/goodinfo', { params })
}
// 收藏列表
export function good_favlist(params = {}) {
    return service.get('/good/favlist', { params })
}
// 点击收藏
export function good_fav(params = {}) {
    return service.post('/good/fav', params)
}
// 取消收藏
export function good_unfav(params = {}) {
    return service.post('/good/unfav', params)
}
// 购物车列表
export function shopcart_list(params = {}) {
    return service.get('/shopcart/list', { params })
}
// 清空购物车
export function shopcart_clear(params = {}) {
    return service.post('/shopcart/clear', params)
}
// 购物车数量+1
export function shopcart_add(params = {}) {
    return service.post('/shopcart/add', params)
}
// 购物车数量-1
export function shopcart_sub(params = {}) {
    return service.post('/shopcart/sub', params)
}